﻿@model GoDinner.Models.Reservering


@{
    ViewBag.Title = "OrderDetail";
}

<h2>OrderDetail</h2>

<fieldset>
    <legend>ReserveringDetails</legend>

    <div class="display-label">
         <label>Id</label>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Id)
    </div>

    <div class="display-label">
         <label>Datum</label>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.datum)
    </div>

    <div class="display-label">
         <label>Goedgekeurd</label>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsGoedgekeurd)
    </div>

    <div class="display-label">
         <label>Details</label>
    </div>
    <div class="display-field">
        @foreach (var data in Model.ReserveringDetails)
        {
             <table id="tableGerechten">
                   <tr>
                       <th>
                           Gerecht
                       </th>
                       <th>
                           Aantal gerechten
                       </th>
                       <th>
                           Prijs
                       </th>
                   </tr>
                   <tr>
                       <td>
                        @data.GerechtId
                       </td>
                       <td>
                        @data.Hoeveelheid
                       </td>
                       <td>
                        @data.Prijs
                       </td>
                   </tr>
             </table>
            <div>
                 <p> Totaalprijs van de bestelling: @data.Totaal</p>
             </div>
          }
    </div>

</fieldset>